  </div><!-- /#main-content -->
  
	<?php if ($bottom_blocks): $x=0; ?>
	  <div id="bottom" class="clearfix">
	  	<?php foreach($bottom_columns[$bottom_blocks] as $col):
				$x++;
				if($x == 1){ $class = " first"; } elseif ($x == count($bottom_columns[$bottom_blocks])) { $class = " last";} else {$class = "";}
			?>
	    	<div class="<?php echo $col.$class; ?>">
	         <?php print render($page['bottom_'.$x]); ?>
	      </div>
	    <?php endforeach; ?>
	  </div><!-- /#bottom -->
  <?php endif; ?>

  <div id="footer-wrapper">
      <div id="footer" class="clearfix">
      	<?php if ($page['footer']): ?>
        	<div class="ft-block">
	        	<?php print render($page['footer']); ?>
	        </div>
        <?php endif; ?>
        
        <?php if ($social_enable): ?>
		      <ul class="social">
		        <?php if ($cn_facebook): ?><li><a href="<?php print $cn_facebook;?>" class="cn-facebook" target="_blank"><img src="<?php print $themepath;?>/images/null.gif" alt="icon" class="sprites i-fb-color" /></a></li><?php endif; ?>
		        <?php if ($cn_twitter): ?><li><a href="<?php print $cn_twitter;?>" class="cn-twitter" target="_blank"><img src="<?php print $themepath;?>/images/null.gif" alt="icon" class="sprites i-tw-color" /></a></li><?php endif; ?>
		        <?php if ($cn_flickr): ?><li><a href="<?php print $cn_flickr;?>" class="cn-flickr" target="_blank"><img src="<?php print $themepath;?>/images/null.gif" alt="icon" class="sprites i-flickr-color" /></a></li><?php endif; ?>
		        <?php if ($cn_linkedin): ?><li><a href="<?php print $cn_linkedin;?>" class="cn-linkedin" target="_blank"><img src="<?php print $themepath;?>/images/null.gif" alt="icon" class="sprites i-linkin-color" /></a></li><?php endif; ?>
            <?php if ($cn_pinterest): ?><li><a href="<?php print $cn_pinterest;?>" class="cn-pinterest" target="_blank"><img src="<?php print $themepath;?>/images/null.gif" alt="icon" class="sprites i-pint-color" /></a></li><?php endif; ?>
		        <?php if ($cn_youtube): ?><li><a href="<?php print $cn_youtube;?>" class="cn-youtube" target="_blank"><img src="<?php print $themepath;?>/images/null.gif" alt="icon" class="sprites i-yt-color" /></a></li><?php endif; ?>
		        <?php if ($cn_vimeo): ?><li><a href="<?php print $cn_vimeo;?>" class="cn-vimeo" target="_blank"><img src="<?php print $themepath;?>/images/null.gif" alt="icon" class="sprites i-vimeo-color" /></a></li><?php endif; ?>
		        <?php if ($cn_email): ?><li><a href="mailto:<?php print $cn_email;?>" class="cn-email"><img src="<?php print $themepath;?>/images/null.gif" alt="icon" class="sprites i-email-color" /></a></li><?php endif; ?>
		        <?php if ($cn_rss): ?><li><a href="<?php print $cn_rss;?>" class="cn-rss"><img src="<?php print $themepath;?>/images/null.gif" alt="icon" class="sprites i-rss-color" /></a></li><?php endif; ?>
		      </ul> <!-- /.social -->
		  <?php endif; ?>
      </div> <!-- /#footer -->
    
  </div> <!-- /#footer-wrapper -->
  <div class="design">Designed by <a href="http://megadrupal.com">MegaDrupal</a></div>
</div><!-- /.pagewrap -->